package com.test;

import java.util.ArrayList;
import java.util.List;
import android.app.ListActivity;
import android.os.Bundle;
import android.widget.ArrayAdapter;
import android.widget.TextView;

public class AlbumsActivity extends ListActivity {
	public void onCreate(Bundle savedInstanceState) {
	super.onCreate(savedInstanceState);
setContentView(R.layout.mainc); 
    TextView tv=(TextView)findViewById(R.id.text1);
    tv.setText("This is AlbumsActivitiy");
    List<String> items = fillArray();        
    ArrayAdapter<String> adapter = new ArrayAdapter<String>(this,android.R.layout.simple_expandable_list_item_1,items); 
           
    this.setListAdapter(adapter); 
} 
private List<String> fillArray() 
{ 
    List<String> items = new ArrayList<String>(); 
    items.add("a"); 
    items.add("b"); 
    items.add("c"); 
    items.add("d"); 
    items.add("e"); 
    items.add("f"); 
    items.add("g"); 
    return items; 
} 
}